Skip to content

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation#1131

Open
copybara-service[bot] wants to merge 1 commit intomainfrom
test_897370846
Open

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation#1131
copybara-service[bot] wants to merge 1 commit intomainfrom
test_897370846

Conversation

@copybara-service
Copy link
Copy Markdown

feat: Make BigQueryAgentAnalyticsPlugin state per-invocation

This change introduces per-invocation instances of BatchProcessor and TraceManager, managed by ConcurrentHashMaps keyed by invocation ID. This ensures that analytics and tracing data are isolated for each concurrent invocation. BatchProcessors and TraceManagers are created lazily on the first event for a given invocation and are cleaned up when the invocation completes.

This change introduces per-invocation instances of BatchProcessor and TraceManager, managed by ConcurrentHashMaps keyed by invocation ID. This ensures that analytics and tracing data are isolated for each concurrent invocation. BatchProcessors and TraceManagers are created lazily on the first event for a given invocation and are cleaned up when the invocation completes.

PiperOrigin-RevId: 897370846
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant